package org.bookie.web.pages;

import org.apache.tapestry.annotations.InjectObject;
import org.apache.tapestry.annotations.InjectPage;
import org.bookie.framework.CommonBasePage;
import org.bookie.model.Group;
import org.bookie.model.services.GroupDAO;

/**
 * Page listing the existing {@link Group}s. 
 * 
 * @author Igor Drobiazko
 *
 */
public abstract class Groups extends CommonBasePage{
	
	/**
	 * Injected event service
	 * @return instance of GroupDAO
	 */
	@InjectObject("service:bookie.model.GroupDAO")
	public abstract GroupDAO getGroupDAO();
	
	/**
	 * Get the current {@link Group} of the iteration 
	 */
    public abstract Group getCurrentGroup();
    
	/**
	 * Get injected {@link GroupDetails} page
	 */
    @InjectPage("GroupDetails")
    public abstract GroupDetails getGroupDetails();

}
